﻿Imports System.ComponentModel

Public Class KhoiBUS
    Public Sub LoadDGV(ByVal dgv As DataGridView, ByVal sql As String)
        Dim Khoi_DAO As KhoiDAO = New KhoiDAO
        Khoi_DAO.LoadGridView(dgv, sql)
    End Sub
    Public Function ThemKhoi(ByVal khoi As KhoiDTO) As Boolean
        Dim Khoi_DAO As KhoiDAO = New KhoiDAO
        Return Khoi_DAO.ThemKhoi(khoi)
    End Function
    Public Function XoaKhoi(ByVal id As String) As Boolean
        Dim Khoi_DAO As KhoiDAO = New KhoiDAO
        Return Khoi_DAO.XoaKhoi(id)
    End Function
    Public Function SuaKhoi(ByVal khoiUpdate As KhoiDTO) As Boolean
        Dim Khoi_DAO As KhoiDAO = New KhoiDAO
        Return Khoi_DAO.SuaKhoi(khoiUpdate)
    End Function
    Public Function GetList() As BindingList(Of KhoiDTO)
        Dim kh_DAO As KhoiDAO = New KhoiDAO
        Return kh_DAO.GetList()
    End Function
End Class
